package com.teamfractal.fracdustry.common.tools;

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.levelgen.Heightmap;

public class worldCheck {
    public static boolean isNoBlockAboveAt(Level world, BlockPos pos){
        if (!world.canSeeSky(pos.above()))
        {
            return false;
        }
        else return world.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING, pos).getY() <= pos.getY();
    }
}
